//
//  NSDictionary+SLILibs.h
//  HeiHei
//
//  Created by LiJie on 14-10-3.
//  Copyright (c) 2014年 com.slient. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (SLILibs)

/// 获取字符串，默认值为@""
- (NSString *)stringForKey:(id)key;

/// 获取NSNumber，默认值为@0
- (NSNumber *)numberForKey:(id)key;

/// 获取NSNumber，默认值为defValue
- (NSNumber *)numberForKey:(id)key default:(NSNumber *)defValue;

/// 获取整型，默认值为0
- (int)intForKey:(id)key;

/// 获取整型，默认值为defValue
- (int)intForKey:(id)key default:(int)defValue;

/// 获取NSArray，默认值为nil
- (NSArray *)arrayForKey:(id)key;

/// 获取NSDictionary，默认值为nil
- (NSDictionary *)dictionaryForKey:(id)key;

@end
